package com.juyu.miliao.api.constant;

import lombok.Getter;

/**
 * wbf
 * 能量获取-明细类型
 * 1:在线时长 2评论动态 3点赞动态 4分享动态 5充值寻币 6购买vip
 */
@Getter
public enum EnergyLevelType {
    ENERGY_TYPE_ONLINE(1,"在线时长",10),
    ENERGY_TYPE_COMMENT(2,"评论动态",5),
    ENERGY_TYPE_GIVE(3,"点赞动态",5),
    ENERGY_TYPE_SHARE(4,"分享动态",10),
    ENERGY_TYPE_DEPOSIT(5,"充值寻币",0),
    ENERGY_TYPE_VIP(6,"购买vip",0),
    ENERGY_TYPE_BUY_LIMIT(7, "限时抢购", 0);


    private int code;
    private String message;
    private int maxValue;

    EnergyLevelType(int code, String message,int maxValue) {
        this.code = code;
        this.message = message;
        this.maxValue = maxValue;
    }
    public static String getDescByType(int type){
        String message;
        switch (type){
            case 1:
                message = "在线时长";
                break;
            case 2:
                message = "评论动态";
                break;
            case 3:
                message = "点赞动态";
                break;
            case 4:
                message = "分享动态";
                break;
            case 5:
                message = "充值寻币";
                break;
            case 6:
                message = "购买vip";
                break;
            case 7:
                message = "限时抢购";
                break;
            default:
                message = "其他消费";
                break;

        }
        return message;
    }
}
